package com.flute.haflute.jobbox.communication.messages;

import java.rmi.RemoteException;

import com.flute.haflute.client.TransferredFiles;


public class FileTransferMessage implements MessageBase {
	private static final long serialVersionUID = 2071988820100011029L;
	/** 该类消息的类型定义 */
	public static final String type = "FileTransferMessage";
	
	private TransferredFiles content;

	@Override
	public void setContent(Object obj) throws RemoteException {
		if(obj instanceof TransferredFiles) {
			content = (TransferredFiles)obj;
		}
		else {
			throw new RemoteException("Must set a TransferredFiles object");
		}

	}

	@Override
	public TransferredFiles getContent() throws RemoteException {
		return content;
	}

	@Override
	public String getType() {
		return type;
	}

}
